package com.seckill.user.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author：
 * @date： 2022/3/14 8:58
 * @Description：
 ***/
@Data
public class UserLogin {

    @NotNull(message = "用户名不允许为空！")
    @Length(min = 5,max = 10,message = "用户名长度为5-10位")
    private String username;

    @NotNull(message = "登录密码不允许为空！")
    @Length(min = 5,max = 10,message = "登录密码长度为5-10位")
    private String password;
}
